#pragma once
//============================================================================
// Copyright (C) 2013 Brett R. Jones
//
// Issued to public domain 2013
//
// brettjones1900@gmail.com
// http://www.p2panarchy.com
//============================================================================

#include "VxDefs.h"

#pragma pack(push) 
#pragma pack(1)
//! 2 bytes in size
class VxSearchFlags
{
public:
	//=== vars ===//
	U16		m_u16SearchFlags;

	//=== constructor ===//
	VxSearchFlags();

	//! return true if any search bits are set
	bool 	hasSearchFlags( void );
	//! return true if has any shared files
	bool	hasSharedFiles( void );
	bool	isFileShareEnabled( void );
	void	enableFileShare( bool bEnable );
	U16		getSharedFileTypes( void );
	void	setSharedFileTypes( U16 u16FileTypes );
	void	clearSharedFileTypes( void );

	//! return true if has Audio files
	bool	hasImageFiles( void );
	//! set has image files
	void	setHasImageFiles( bool bHasFiles );
	//! return true if has Audio files
	bool	hasAudioFiles( void );
	//! set has audio files
	void	setHasAudioFiles( bool bHasFiles );
	//! return true if has Audio files
	bool	hasVideoFiles( void );
	//! set has audio files
	void	setHasVideoFiles( bool bHasFiles );
	//! return true if has Other files
	bool	hasOtherFiles( void );
	//! set has audio files
	void	setHasOtherFiles( bool bHasFiles );
	//! return true if user has set profile picture
	bool	hasProfilePicture( void );
	//! set has profile picture
	void	setHasProfilePicture( bool bHasPicture );
	//! return true if user has set profile picture
	bool	hasSharedWebCam( void );
	//! set has audio files
	void	setHasSharedWebCam( bool bHasWebCam );
	//! return true if user has modified his storyboard
	bool	hasModifiedStoryboard( void );
	//! set has audio files
	void	setHasModifiedStoryboard( bool bHasStoryBoard );
};

#pragma pack(pop)